export function handleRec1() {
    const self = this;

    let stateCode = self.$$("detail_field_2yz87r").$$getValue();
    let thirdRecId = self.$$("detail_field_2925e2").$$getValue();
    let uid = self.$$("detail_field_8d8os7").$$getValue();
    let thirdAppCode = self.$$("detail_field_4u00qp").$$getValue();


    window.parent && window.parent.postMessage({
        type: 'openRoute',
        routeName: 'warning-task-detail',
        data: {
            stateCode,
            thirdRecId,
            uid,
            thirdAppCode
        }
    }, '*');
}



export function handleRec(params) {

    let stateCode = params.state_code.value
    let thirdRecId = params.third_rec_id.value;
    let uid = params.uid.value;
    let thirdAppCode = params.third_app_code.value;


    window.parent && window.parent.postMessage({
        type: 'goRoutePage',
        routeName: 'warning-task-detail',
        data: {
            stateCode,
            thirdRecId,
            uid,
            thirdAppCode
        }
    }, '*');
}
